<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/head/common/include/page.jsp"%>
<c:set value="${requestScope.standResponse.data.list }" var="standList"/>
<jsp:useBean id="pojo" class="com.wang.users.pojo.AUsers"/>
<!DOCTYPE html>
<html lang="zh-CN">
	<head>
		<title>添加体测成绩 - 体能测试系统</title>
		<%@ include file="/head/common/include/title.jsp"%>
	    <link rel="stylesheet" href="${rootPath }/head/common/resource/bootstrapvalidator/css/form-validation.css" rel="stylesheet">
	  	<script type="text/javascript" src="${rootPath }/head/common/resource/bootstrapvalidator/js/form-validation.js"></script>
	  	<script language="javascript" type="text/javascript" src="${rootPath }/common/resource/My97DatePicker/WdatePicker.js"></script>
	  	<script type="text/javascript">
	  		$(function()
			{
			  	$("#form").FormValidation({
		  			fields:
	  				{
		  				phone:
	  					{
		  					validators: {
		  	                    notEmpty: {
		  	                        message: '手机号不能为空'
		  	                    },
		  	                    stringLength: {
		  	                        min: 11,
		  	                        max:11,
		  	                        message: '手机号的长度为在11位'
		  	                    },
		  	                    regexp: {
		  	                        regexp: /^[\d]{11}$/i,
		  	                        message: '手机号不符合规则'
		  	                    }
		  	                }
	  					},
	  					grade:
	  					{
		  					validators: {
		  	                    notEmpty: {
		  	                        message: '年级不能为空'
		  	                    },
		  	                    regexp: {
		  	                        regexp: /^[\d]+$/i,
		  	                        message: '年级不符合规则'
		  	                    }
		  	                }
	  					},
	  					age:
	  					{
		  					validators: {
		  	                    notEmpty: {
		  	                        message: '年龄不能为空'
		  	                    },
		  	                    regexp: {
		  	                        regexp: /^[\d]+$/i,
		  	                        message: '年龄不符合规则'
		  	                    }
		  	                }
	  					},
	  				}
				});
			  	
			});
	  	</script>
	</head>
	<body>
		<%@ include file="/head/common/include/header.jsp"%>
		<!-- 网页的主体 -->
		<div class="container">
			<div class="col-md-8 col-sm-10">
				<form id="form" method="post" class="form-horizontal" action="${rootPath }/head/bodys/sidesInsertSubmit">
					<h2 class="col-sm-10 col-sm-offset-1 form-signin-heading text-center">添加体测成绩</h2>
					<input type="hidden" name="email" value="${sessionScope.usersSess.email}">
					<div class="form-group row">
						<label for="email" class="col-sm-3 control-label">标准项</label>
						<div class="col-sm-8">
							<select name="standId" class="form-control mr-sm-2">
								<c:forEach items="${standList }" var="listTemp" varStatus="stat">
									<option value="${listTemp.id }" ${one.standId == listTemp.id ? 'selected' : '' }>${listTemp.grade }(${listTemp.sexStr })</option>
								</c:forEach>
							</select>
						</div>
					</div>
					<div class="form-group row">
						<label for="email" class="col-sm-3 control-label">肺活量</label>
						<div class="col-sm-8">
							<input type="text" name="vitalcapacity" id="vitalcapacity" value="${one.vitalcapacity }"
								class="form-control" placeholder="肺活量" />
						</div>
					</div>
					<div class="form-group row">
						<label for="email" class="col-sm-3 control-label">1000米/800米长跑:秒</label>
						<div class="col-sm-8">
							<input type="text" name="longrun" id="longrun" value="${one.longrun }"
								class="form-control" placeholder="1000米/800米长跑:秒" />
						</div>
					</div>
					<div class="form-group row">
						<label for="email" class="col-sm-3 control-label">50米跑:秒</label>
						<div class="col-sm-8">
							<input type="text" name="shortrun" id="shortrun" value="${one.shortrun }"
								class="form-control" placeholder="50米跑:秒" />
						</div>
					</div>
					<div class="form-group row">
						<label for="email" class="col-sm-3 control-label">身高:米</label>
						<div class="col-sm-8">
							<input type="text" name=height id="height" value="${one.height }"
								class="form-control" placeholder="身高:米" />
						</div>
					</div>
					<div class="form-group row">
						<label for="email" class="col-sm-3 control-label">体重:KG</label>
						<div class="col-sm-8">
							<input type="text" name="weight" id="weight" value="${one.weight }"
								class="form-control" placeholder="体重:KG" />
						</div>
					</div>
					<%-- <div class="form-group row">
						<label for="email" class="col-sm-3 control-label">体脂: %</label>
						<div class="col-sm-8">
							<input type="text" name="bml" id="bml" value="${one.bml }"
								class="form-control" placeholder="体脂: %" />
						</div>
					</div> --%>
					<div class="form-group row">
						<label for="email" class="col-sm-3 control-label">仰卧起坐/引体向上:个</label>
						<div class="col-sm-8">
							<input type="text" name="abdominalcurl" id="abdominalcurl" value="${one.abdominalcurl }"
								class="form-control" placeholder="仰卧起坐/引体向上:个" />
						</div>
					</div>
					<div class="form-group row">
						<label for="email" class="col-sm-3 control-label">坐位体前屈:个</label>
						<div class="col-sm-8">
							<input type="text" name="sittingforward" id="sittingforward" value="${one.sittingforward }"
								class="form-control" placeholder="坐位体前屈:个" />
						</div>
					</div>
					<div class="form-group">
						<div class="col-sm-8 col-sm-offset-2">
							<button class="btn btn-md btn-primary" type="submit">提交</button>
						</div>
					</div>
				</form>
			</div>
		</div>
		<%@ include file="/head/common/include/footer.jsp"%>
	</body>
</html>